package com.pwl.shiro.service.impl;

import com.pwl.shiro.dao.UsersDao;
import com.pwl.shiro.entity.Users;
import com.pwl.shiro.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("usersService")
public class UsersServiceImpl implements UsersService {
   @Autowired
   private UsersDao usersDao;

    @Override
    public Users login(String username) {
        return usersDao.findByUsername(username);
    }
}
